<!--导入按钮-->
<template id="mutilClear">
  <div class="mutilClear el-card is-always-shadow el-card__body">
    <el-dialog
      title="批量回馈差异原因"
      :visible.sync="dialogVisible"
      @close="closed"
      width="500px">
      <avue-form :option="option" v-model="form" @submit="handleSubmit" label-position="left"></avue-form>
        <template slot-scope="scope" slot="menuForm" >
          <el-button type="primary" @click="" >确认</el-button>
          <el-button @click="" >返回</el-button>
        </template>
    </el-dialog>
  </div>
</template>


<script>
  import {getForm, postForm} from '@/api/gen/gen'
  import ExportJsonExcel from "js-export-excel";
  import ElInput from "../../../../node_modules/element-ui/packages/input/src/input";
  export default {
    components:{
      ElInput
    },
    data() {
      return {
        headers:{},
        dialogVisible:true,
        thisDayVal:'',
        list:[],
        option:{
          column: [{
            label: "日期",
            prop: "thisday",
            span:24,
            disabled:true,
            value: new Date().getFullYear()+"-" + (new Date().getMonth()+1) + "-" + new Date().getDate()
          },{
            label:"差异原因",
            prop:"diffdesc",
            span:24,
            type:'textarea'
          }]
        },form:{
          text:'动态内容1'
        },
       }
    },
    created() {

    },
    methods: {
      closed(){
        this.$parent.isShowMutilCleardDiff=false;
      },handleSubmit(value){
        let reqData = {ids:this.$parent.selectKeyVals,thisday:value.thisday,diffdesc:value.diffdesc}
        this.$parent.doMutilCleardDiff(reqData);
        this.$parent.isShowMutilCleardDiff=false;
      },
    },
    mounted() {

    }
  }
</script>
<style lang="scss">
  .Export{
    display: inline-flex;
    .el-upload-list{
      display: none;
    }
  }

</style>
